<script>
	import {
		getToken
	} from './utils/auth.js'
	export default {
		onLaunch: function() {
			// console.log('App Launch')
			let token = getToken()
			// console.log('App Launch')
			if (!token) {
				// 不存在则跳转登录页
				uni.reLaunch({
					url: "/pages/front-login/front-login",

				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";

	.uni-tabbar {
		font-size: 20px;
	}
</style>